package yxy.game.pm2.command.union;

import yxy.cherry.game.base.message.MessageEmitterHandler;
import yxy.cherry.game.base.message.annotation.MessageSource;
import yxy.cherry.game.base.message.annotation.MessageType;
import yxy.game.pm2.command.Command;
import yxy.game.pm2.message.UnionMessage;
import yxy.game.pm2.module.union.UnionHandle;

/** 联盟 联盟列表 */
@MessageType(proto = Command.UnionHotList, classtype = UnionMessage.UnionHotListRequest.class)
public class CMD_UnionHotList extends Command<UnionMessage.UnionHotListRequest> {

	@Override
	public void execute(MessageSource messageSource, UnionMessage.UnionHotListRequest request) {
		String playerCode = messageSource.getTag();

		MessageEmitterHandler.getInstance().send(messageSource, new UnionHandle().hotList(playerCode));
	}

}